#!/bin/bash

src=$(adapt tool get $(pwd)/ABF.tar.gz)
bld=$src/bld

mkdir -p $bld

adapt register self src=$src bld=$bld

cd $bld || exit 1
adapt cmake ..

adapt make

make install

error_code=$?

exit $error_code # not necc. if the command is last command in the script
